# Create your views here.
from django.shortcuts import render

from tools.forms import FleetForm

def fleet_calculator(request):
    if request.METHOD == "GET" :
        form = FleetForm()
        return render(request,'tools/fleet_calculator.html',{'form':form})
    else :
        form = FleetForm(data=request.data)
        if form.is_valid() :
            return render(request,'tools/fleet_calculator.html',{'form':form})
        else :
            return render(request,'tools/fleet_calculator.html',{'form':form})

